/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.client.company;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.Collection;
import org.toools.gwt.widget.client.bc.TooolsServiceAsync;

import org.toools.gwt.wmc.jpa.Company;

/**
 *
 * @author Manuel
 */
public interface CompanyServiceAsync extends TooolsServiceAsync{

    void getCompanyByID(Integer id, AsyncCallback<Company> callback);
    void getCompanies(AsyncCallback<Collection<Company>> callback);

    void create( Company c, AsyncCallback<Company> callback );
    void update( Company c, AsyncCallback<Boolean> callback );
    void delete( Company c, AsyncCallback<Boolean> callback );

}
